package com.xinggq.pay.service.config;

import com.xinggq.pay.service.pay.channel.yse.enums.YsePayWayBindEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * YsePayWayBindEnum初始化器
 * @Description 在Spring容器启动完成后初始化Bean缓存
 * @Author xinggq
 * @Date 2025/9/9
 */
@Slf4j
@Component
public class YsePayWayBindEnumInitializer implements ApplicationRunner {

  @Override
  public void run(ApplicationArguments args) throws Exception {
    log.info("开始初始化YsePayWayBindEnum Bean缓存");
    YsePayWayBindEnum.initBeanCache();
    log.info("YsePayWayBindEnum Bean缓存初始化完成");
  }
}